package la.iok.hzsvn.lewin.movie.cloud.mapper;

import la.iok.hzsvn.lewin.movie.cloud.entity.User;
import la.iok.hzsvn.lewin.mybatis.mapper.BaseMapper;

import java.util.Collection;
import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    /**
     * 更新用户信息
     * @param id 用户id
     * @param phoneNumber 手机号码
     * @param password 密码
     * @param orgUnitId 组织id
     */
    void update(Long id,String phoneNumber,String password,Long orgUnitId);

    User selectByPhoneNumber(String phoneNumber);

    List<User> list(Collection<Long> orgUnitIds, String phoneNumber);

    User selectUser(Long userId);

}
